<?php

namespace app\admin\validate;

use think\Validate;

class Balance extends Validate
{
    protected $rule = [
        //['user_id',         'require|number|>:0',                   '用户错误|用户错误|用户错误'],
        ['state',           'require|number|in:1,2',                '名称不能为空'],
        ['reason',          'chsDash|length:4,64',                  '拒绝理由只能为汉字、字母、数字和下划线_及破折号-|拒绝理由字符长度在4-64之间'],
        ['safe_pass',       'require|alphaDash|length:4,16',        '请先输入操作密码|密码只能为字母和数字，下划线_及破折号-|密码长度在4-16之间'],
    ];

    protected $scene = [
        'allWithdraw'       => ['state', 'reason', 'safe_pass'],
    ];
}
